import React, { Component,Fragment } from 'react';

export default class ListItem extends Component{
    constructor(){
        super();
        this.state = {}
    }
    render(){
        return (<Fragment>
            <li onClick={this.delFunHandle.bind(this)}>{ this.props.content }</li>
        </Fragment>)
    }
    delFunHandle(){
        this.props.delfun(this.props.idx)
    }
}